home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-11-24 | 555 b | 41 lines | [TEXT/MPS ] |
- include 'sysequ.a'
- include 'traps.a'
- proc
- export AsmInitNoForceQuit, NoForceQuit
-
- ; procedure AsmInitNoForceQuit(sys6byte:ptr; oldsyserror:Ptr);
- AsmInitNoForceQuit
- lea data,a1
- move.l 4(sp),0(a1)
- move.l 8(sp),a0
- move.l a0,4(a1)
- move.w #$4EF9,(a0)
- lea NoForceQuit,a1
- move.l a1,2(a0)
-
- _FlushDataCache
- _FlushInstructionCache
-
- move.l (sp)+,a0
- add.l #8,sp
- jmp (a0)
-
- ; D0.w = error
- NoForceQuit
- cmp.w #20002,d0
- beq.s justreturn
- move.l oldaddr,a0
- jmp (a0)
- justreturn
- rts
-
- data
- oldaddr ds.l 1
- sysptr ds.l 1
-
- endp
-
- end
-
- asm -wb "{active}"
-